package com.app.designpatternslearn.creational.abstractfactorypattern.code

import com.app.designpatternslearn.creational.abstractfactorypattern.code.color.Color
import com.app.designpatternslearn.creational.abstractfactorypattern.code.color.ColorType
import com.app.designpatternslearn.creational.abstractfactorypattern.code.shape.*

class ShapeFactory: AbstractFactory() {
    override fun getColor(type: ColorType): Color {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun getShape(type: ShapeType): Shape = when(type) {
        ShapeType.CIRCLE -> Circle()
        ShapeType.RECTANGLE -> Rectangle()
        ShapeType.SQUARE -> Square()
    }


}
